<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<script src="js/react.js"></script>
<script src="js/react-dom.js"></script>
<script src="js/browser.min.js"></script>
<div id="eg"></div>
<script type="text/babel">
//直接在html页面转译jsx
ReactDOM.render(
<div>
<h1>你好，世界！</h1>
<h2>在标签中使用javascript函数</h2>
{
(function(){
return (<p>hello</p>);
})()
}
</div>,
document.getElementById("eg")
);
</script>
</body>
</html>